<!DOCTYPE html>
<html lang="en">

<head>
    <title>My BCIT Project</title>
    <meta name="comp2800 template" content="My 2800 App">

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>

    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js"></script>
    

    <style>
        :root {
            --primary-color: #2B6CB0;       
            --background-color: #F3F4F6;    
            --card-background: #FFFFFF;     
            --text-color: #1F2937;          
            --light-text-color: #6B7280;     
            --border-color: #D1D5DB;        
            --button-hover-shadow: rgba(43, 108, 176, 0.2); 
        }

        body {
            background-color: var(--background-color);
            font-family: 'Inter', sans-serif;
        }

        #navbarPlaceholder,
        #footerPlaceholder {
            background-color: var(--secondary-color);
            color: white;
            padding: 1rem 0;
        }

        .bg-white {
            background-color: var(--card-background) !important;
        }
        .shadow-custom {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        .text-secondary {
            color: var(--secondary-color) !important;
        }
        .text-gray-500 {
            color: var(--light-text-color) !important;
        }

        .form-item {
            margin-bottom: 1.25rem;
        }
        .form-label {
            color: var(--text-color);
            font-weight: 500;
        }
        .form-input {
            width: 100%;
            padding: 0.875rem 1.25rem;
            border: 1px solid var(--border-color);
            border-radius: 0.375rem;
            background-color: var(--card-background);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .form-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px var(--button-hover-shadow);
        }

        .fa-user, .fa-phone, .fa-envelope,
        .fa-tag, .fa-comment, .fa-cloud-upload {
            color: var(--light-text-color);
        }

        .bg-gradient-blue {
            background: linear-gradient(135deg, var(--primary-color) 20%, #4F90F6 100%); /* 渐变主色 */
            color: white;
            font-weight: 500;
        }
        .bg-gradient-blue:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--button-hover-shadow);
        }

        .border-dashed {
            border-color: var(--border-color) !important;
        }
        .bg-accent-300 {
            background-color: rgba(43, 108, 176, 0.05); /* 主色淡背景 */
        }
        .bg-accent-300:hover {
            background-color: rgba(43, 108, 176, 0.1);
        }
    </style>
</head>

<body>
    <nav id="navbarPlaceholder"></nav>

    <div class="w-full max-w-md mx-auto p-4">
        <div class="bg-white rounded-xl shadow-custom p-6 mb-6">
            <div class="flex items-center justify-between mb-6">
                <h1 class="text-2xl font-bold text-secondary">Feedback & Suggestions</h1>
                <a href="#" class="text-gray-500 hover:text-primary transition-colors duration-200">
                    <i class="fa fa-times"></i>
                </a>
            </div>
            
            <form id="feedback-form">
                <div class="form-item">
                    <label class="form-label" for="name">Name</label>
                    <div class="relative">
                        <span class="absolute inset-y-0 left-0 flex items-center pl-3">
                            <i class="fa fa-user"></i>
                        </span>
                        <input class="form-input pl-10" id="name" type="text" placeholder="Enter your name">
                    </div>
                </div>

                <div class="form-item">
                    <label class="form-label" for="phone">Phone Number</label>
                    <div class="relative">
                        <span class="absolute inset-y-0 left-0 flex items-center pl-3">
                            <i class="fa fa-phone"></i>
                        </span>
                        <input class="form-input pl-10" id="phone" type="tel" placeholder="Enter your phone number">
                    </div>
                </div>

                <div class="form-item">
                    <label class="form-label" for="email">Email Address</label>
                    <div class="relative">
                        <span class="absolute inset-y-0 left-0 flex items-center pl-3">
                            <i class="fa fa-envelope"></i>
                        </span>
                        <input class="form-input pl-10" id="email" type="email" placeholder="Enter your email address">
                    </div>
                </div>

                <div class="form-item">
                    <label class="form-label" for="feedback-type">Feedback Type</label>
                    <div class="relative">
                        <span class="absolute inset-y-0 left-0 flex items-center pl-3">
                            <i class="fa fa-tag"></i>
                        </span>
                        <select class="form-input pl-10 appearance-none" id="feedback-type">
                            <option value="">Select feedback type</option>
                            <option value="feature">Feature Suggestion</option>
                            <option value="issue">Usage Problem</option>
                            <option value="ui">UI Optimization</option>
                            <option value="other">Other</option>
                        </select>
                        <span class="absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none">
                            <i class="fa fa-chevron-down"></i>
                        </span>
                    </div>
                </div>

                <div class="form-item">
                    <label class="form-label" for="feedback-content">Feedback Details</label>
                    <div class="relative">
                        <span class="absolute top-3 left-0 flex items-center pl-3">
                            <i class="fa fa-comment"></i>
                        </span>
                        <textarea class="form-input pl-10" id="feedback-content" rows="4" placeholder="Please describe your issue or suggestion in detail..."></textarea>
                    </div>
                </div>

                <div class="form-item">
                    <label class="form-label">Upload Screenshot (Optional)</label>
                    <div class="border-2 border-dashed rounded-lg p-4 bg-accent-300 hover:bg-accent-300:hover">
                        <div class="flex items-center justify-center">
                            <label for="file-upload" class="flex flex-col items-center justify-center cursor-pointer w-full">
                                <div class="w-16 h-16 bg-primary-100 rounded-full flex items-center justify-center mb-3">
                                    <i class="fa fa-cloud-upload text-primary"></i>
                                </div>
                                <p class="mb-1 text-sm text-gray-600 font-medium">Click to upload screenshot</p>
                                <p class="text-xs text-gray-400">Supports PNG, JPG, GIF</p>
                                <input id="file-upload" type="file" class="hidden" accept="image/*" />
                            </label>
                        </div>
                    </div>
                </div>

                <button type="submit" class="w-full bg-gradient-blue text-white font-medium py-3 px-4 rounded-lg transition-all duration-300 transform hover:-translate-y-1 hover:shadow-lg">
                    <i class="fa fa-paper-plane mr-2"></i>
                    Submit Feedback
                </button>
            </form>
        </div>
        
        
    </div>

    <nav id="footerPlaceholder"></nav>


    <script src="./scripts/skeleton.js"></script>
    <script src="./scripts/feedback.js"></script>
</body>

</html>